<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymleaf.org">
<head>
    <meta charset="UTF-8">
    <title>springboot首页</title>
</head>
<body>

<h2>
    This is a page,and is index.
    power of thymeleaf template.
</h2>
<!--所有的html元素都可以被thymeleaf接管，只需要添加th:-->
<h1 th:text="${msg}">of h1</h1>
<div th:text="${msg}">of div</div>
<div th:utext="${msg}">of div 经过转义 h1 </div>

<h2 th:test="${msg}">[[${msg}]] of ModelAndView</h2>

<hr>

<h2 >遍历数组</h2>
<div th:each = "user:${users}"  th:text ="${user}"></div>
<div th:each = "user:${users}">[[${user}]]</div>
</body>
</html>